package com.woniuxy.store.client;


import com.woniuxy.store.client.param.tableParam.AddTableParams;
import com.woniuxy.store.client.param.tableParam.LoadAllStoreTableParams;
import com.woniuxy.store.client.param.tableParam.ModifyTableParams;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;
import result.Result;



@FeignClient(contextId = "tableClient",name="store",path="/store/table")
public interface TableClient {
    @GetMapping("/loadAllStoreTable")
    public Result loadAllStoreTable(@SpringQueryMap LoadAllStoreTableParams loadAllStoreTableParams);

    @PostMapping("/addTable")
    public Result addTable(@RequestBody AddTableParams addTableParams);

    @PutMapping("/modifyTable")
    public Result modifyTable(@RequestBody ModifyTableParams modifyTableParams) throws Exception;

    @DeleteMapping("/deleteTable")
    public Result deleteTable(@RequestParam("tableId")Integer tableId);

}
